<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .parent{
            display: flex;
            /*默认值，即使容器宽度不够也不会换行，会压缩子元素宽度*/
           /* flex-wrap: nowrap;*/
            /*如果容器宽度不够，会让项目换行显示*/
            flex-wrap:wrap;

            /*翻转换行*/
           /* flex-wrap:wrap-reverse;*/

            /*控制在主轴换行以后在交叉的对齐方式*/
        /*    align-items:center;
            align-items:flex-end;*/

            /*当主轴上有多行内容时，可以通过align-content设置交叉轴属性*/

            /*多行，交叉轴开始的位置对齐*/
           /* align-content:flex-start;
            /*多行，交叉轴结束的位置对齐*/
            /*align-content:flex-end;
            /*多行，交叉轴居中对齐*/
            /*align-content: center;

            /**/
          /*  align-content: space-around;
            align-content: space-between;
            align-content: space-evenly;

            /*多行，平均分配每一行元素*/
            align-content: stretch;

            width:800px;
            height:800px;
            background-color: #ff8500;

        }
        .item{
            width:100px;
            height:100px;
            background-color:darkred;
        }
    </style>
</head>
<body>
<div class="parent">
    <div class="item">1</div>
    <div class="item">2</div>
    <div class="item">3</div>
    <div class="item">4</div>
    <div class="item">5</div>
    <div class="item">6</div>
    <div class="item">7</div>
    <div class="item">8</div>
    <div class="item">9</div>
    <div class="item">10</div>

</div>
</body>
</html>